//
//  YCCoreDataManager+CDProduct.h
//  DemoCoreData
//
//  Created by tangkexiong on 16/3/16.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import "YCCoreDataManager.h"

#import "YCProduct.h"
#import "YCProductCategory.h"

@interface YCCoreDataManager (CDProduct)

- (void)insertProduct:(YCProduct *)product
                 block:(void(^)(NSError *error,
                                YCProduct *product))block;
- (void)deleteProduct:(YCProduct *)product
                 block:(void(^)(NSError *error))block;
- (void)updateProduct:(YCProduct *)category
                 block:(void(^)(NSError *error,
                                YCProduct *product))block;

@end
